package com.design.pattern.creational.builder;

/**
 * 建造者模式测试
 *
 * @author RenQiQiang 2019/01/31 10:54
 */
public class Test {

    public static void main(String[] args) {
        Course course = new Course.CourseBuilder()
                .builderTitle("课程名称")
                .builderPrice("1000")
                .builderStartTime("20190101")
                .builderEndTime("20190131")
                .builder();

        System.out.println(course.toString());
    }
}
/**
 * StringBuilder
 * StringBuffer
 */
